/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.dosideas.restlet.application;

import com.dosideas.restlet.resource.AlumnoResource;
import com.dosideas.restlet.resource.CursoResource;
import com.dosideas.restlet.resource.CursosPorAlumnoResource;
import org.restlet.Application;
import org.restlet.Restlet;
import org.restlet.routing.Router;

/**
 *
 * @author Emiliano
 */
public class EscuelaApplication extends Application {

    @Override
    public Restlet createInboundRoot() {
        Router router = new Router(getContext());
        router.attach("/alumno", AlumnoResource.class);
        router.attach("/alumno/{id}/curso", CursosPorAlumnoResource.class);
        router.attach("/curso", CursoResource.class);
        
        return router;
    }
    
    
}
